package com.maomao.maomaochong_i.quanxing.PhoneData.SendFactory;

import com.maomao.maomaochong_i.global.Show;
import com.maomao.maomaochong_i.quanxing.PhoneData.SendFactory.Factory.BrandNewData;
import com.maomao.maomaochong_i.quanxing.PhoneData.SendFactory.Factory.GetList;
import com.maomao.maomaochong_i.quanxing.PhoneData.SendFactory.Factory.InterestinData;
import com.maomao.maomaochong_i.quanxing.PhoneData.SendFactory.Factory.Phoneaccessories;
import com.maomao.maomaochong_i.quanxing.PhoneData.SendFactory.Factory.SecondData;

/**
 * Created by Mrma on 17.5.25.
 */

public class SendShowFactory {

    public static GetList makeShow(Show show){
        switch (show){
            case NEWPHONE:
                return new BrandNewData();
            case SENCONEDPHOE:
               return new SecondData();
            case INTERESSTION:
                return new InterestinData();
            case PHONEACCESSORIES:
                return new Phoneaccessories();

        }
        return null;
    }
}
